﻿using Absky.Web.Controllers;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;

namespace Absky.Web.Areas.LanguageModule.Controllers
{
    [Area("LanguageModule")]
    public class LanguageMapController : BaseController
    {
        public IActionResult Index()
        {
            return View();
        }
        /// <summary>
        /// 根据语言类型编码获取语言包
        /// </summary>
        /// <param name="typeCode">语言类型编码</param>
        /// <param name="ver">版本号</param>
        /// <returns></returns>
        [HttpGet]
        public async Task<IActionResult> GetLanguageByCode(string typeCode, string ver, bool isMain)
        {
            //var data = lGMapIBLL.GetMap(typeCode, isMain);
            //string md5 = Md5Helper.Encrypt(data.ToJson(), 32);
            //if (md5 == ver)
            //{
            //    return Success("no update");
            //}
            //else
            //{
            //    var jsondata = new
            //    {
            //        data = data,
            //        ver = md5
            //    };
            //    return Success(jsondata);
            //}
            return Json(new { code=200, info = "no update" });
        }
    }
}
